#include <QtOpenGL>
#include "lapis.h"
#include <GL/glu.h>



lapis::lapis(MainWindow *mainWindow, const QVector3D& center, QObject *parent):
    Object3D(center, parent)
{
     QDir d("../DojoGL/");
     RED = GREEN = BLUE = 255;
}

void lapis::drawGeometry(void)
{
    GLdouble base=1;
    GLdouble top = 1;
    GLdouble height=10;
    GLint slices =50;
    GLint stacks =50;
   glColor3ub(RED,GREEN,BLUE);
    glScalef(0.1,0.1,0.1);


    GLUquadricObj *quadObj = gluNewQuadric();

    gluQuadricOrientation(quadObj, GLU_INSIDE);
    gluDisk(quadObj,0,1,30,1);
    gluQuadricOrientation(quadObj, GLU_OUTSIDE);
    gluCylinder(quadObj, base, top, height, slices, stacks);
    glTranslatef(0, 0, 10);
    gluCylinder(quadObj, base, 0, 4, slices, stacks);




}

